package com.tuling.designpattern.composite;

/**
 * @author 林瑞涛
 * @desc
 * @date 2021年07月28日 18:30
 */
public class MaketJoin extends Market{
    public MaketJoin(String name){
        this.name = name;
    }

    @Override
    public void add(Market market) {

    }

    @Override
    public void remove(Market market) {

    }

    @Override
    public void payByCard() {
        System.out.println(name + "消费,积分已累加入该会员卡");
    }
}
